//
//  SlowBloodStretch.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-6-21.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"

@interface SlowBloodStretch : CCNode
{
    CCSprite* _bgSprite;
    CCSprite* _slowSprite;
    CCSprite* _bloodSprite;
    float _width;
    float _height;
    float _maxWidth;
    int _progress;
}

+(id) bloodStretchWithBG:(NSString*)bgFrameName 
                    slow:(NSString*)slowFrameName 
                   blood:(NSString*)bloodFrameName
                   width:(float)width
                  isLeft:(BOOL)isLeft;

-(id) initStretchWithBG:(NSString*)bgFrameName 
                   slow:(NSString*)slowFrameName 
                  blood:(NSString*)bloodFrameName 
                  width:(float)width
                 isLeft:(BOOL)isLeft;

-(void) setProgress:(int)progress duration:(ccTime)duration;
- (void)secondUpdate;

@property (readwrite) float width; 
@property (readwrite) float height; 

@end
